home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / clippings / 920622-01 < prev    next >
Encoding:
Internet Message Format  |  1992-10-01  |  1.0 KB

  1. From: wietse@wzv.win.tue.nl (Wietse Venema)
  2. Newsgroups: comp.security.misc,alt.security,comp.unix.admin,comp.sys.sun.admin
  3. Subject: Re: new tcp wrappers and related stuff
  4. Message-ID: <3569@svin02.info.win.tue.nl>
  5. Date: 22 Jun 92 13:34:59 GMT
  6. References: <3424@wzv.win.tue.nl>
  7. Organization: Eindhoven University of Technology, The Netherlands
  8.  
  9. Mathew BM LIM (M.Lim@anu.edu.au) found a potential problem in my remote
  10. user name lookup code (RFC 931). It may cause network daemons to die
  11. with an alarm signal when user name lookup fails. The fix is simple:
  12. just add an alarm(0) call (see below). A patch will be submitted to
  13. comp.sources.misc and a fixed shar file will be made available for
  14. anonymous ftp.
  15.  
  16.     Wietse
  17.  
  18. *** rfc931.c-    Fri Jun 12 10:41:44 1992
  19. --- rfc931.c    Mon Jun 22 15:14:39 1992
  20. ***************
  21. *** 80,85 ****
  22. --- 80,86 ----
  23.       if (connect(s, (struct sockaddr *) & sin, sizeof(sin)) == -1
  24.       || (fp = fdopen(s, "w+")) == 0) {
  25.       close(s);
  26. +     alarm(0);
  27.       return (result);
  28.       }
  29.       /* Query the RFC 931 server. Would 13-byte writes ever be broken up? */
  30.  
  31.